<?php
namespace plugin\laoha\app\validate;

use think\Validate;

class TitleValidate extends Validate
{
    protected $rule =   [
        'title'  => 'require|max:200',
    ];

    protected $message  =   [
        'title.require' => '名称必须',
        'title.max'     => '名称最多不能超过200个字符',
    ];

    
    protected $scene = [
        'create' => ['title'],  //必须
        'update' => ['title'],  //必须
    ];
}
